// 导入自己需要的组件
import { Select, Option, OptionGroup, Input,Button, Tree, Row, Col ,Message,
  Menu,
  Submenu,
  MenuItem,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Tooltip,
  Form,
  FormItem,
  Loading,
  Dialog,
  Pagination,
  Table,
  TableColumn,
  DatePicker,
  TimeSelect,
  TimePicker,
  Card,
  Upload,
  Switch,
  MessageBox,} from 'element-ui'
const element = {
  install: function (Vue) {
    Vue.use(Select)
    Vue.use(Option)
    Vue.use(OptionGroup)
    Vue.use(Input)
    Vue.use(Button)
    Vue.use(Tree)
    Vue.use(Row)
    Vue.use(Col)
    Vue.use(Menu)
    Vue.use(Submenu)
    Vue.use(MenuItem)
    Vue.use(Dropdown)
    Vue.use(DropdownMenu)
    Vue.use(DropdownItem)
    Vue.use(Tooltip)
    Vue.use(Form)
    Vue.use(FormItem)
    Vue.use(Loading)
    Vue.use(Dialog)
    Vue.use(Pagination)
    Vue.use(Table)
    Vue.use(TableColumn)
    Vue.use(DatePicker)
    Vue.use(TimeSelect);
    Vue.use(TimePicker);
    Vue.use(Card)
    Vue.use(Upload)
    Vue.use(Switch)

    Vue.prototype.$message = Message
    Vue.prototype.$msgbox = MessageBox;
    Vue.prototype.$alert = MessageBox.alert;
    Vue.prototype.$confirm = MessageBox.confirm;
    Vue.prototype.$prompt = MessageBox.prompt;
  }
}
export default element